//
//  YHYHeadCollectionReusableView.m
//  self
//
//  Created by 杨泓晔 on 16/4/7.
//  Copyright © 2016年 LanJue. All rights reserved.
//

#import "YHYHeadCollectionReusableView.h"
#import "Masonry.h"
@implementation YHYHeadCollectionReusableView
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self creatView];
    }
    return self;
}
//abc
- (void)creatView{
    
    UIView *view = [UIView new];
    [self addSubview:view];
    [view mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.height.width.mas_equalTo(self);
        make.left.mas_equalTo(15);
    }];
    
    self.addressL = [UILabel new];
    [view addSubview:self.addressL];
    [self.addressL mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.mas_equalTo(view);
       // make.height.width.mas_equalTo(self);
      //  make.left.mas_equalTo(self.mas_left).offset(15);
        make.size.mas_equalTo(CGSizeMake(30, 30));
        
    }];
    
    
    
    [_addressL setNumberOfLines:0];
    //   [lblTitle setTextColor:UIColorFromRGB(kColorStringBlack)];
    // [lblTitle setBackgroundColor:[UIColor clearColor]];
    [_addressL setTextAlignment:NSTextAlignmentCenter];
   
    _addressL.backgroundColor = [UIColor whiteColor];
    _addressL.font = [UIFont fontWithName:@"Arial" size:TEXTCONTENTFONT2 * AUTO_WIDTH];
    _addressL.textColor = TextGrayColor;
    //裁掉边框
    _addressL.layer.masksToBounds = YES;
    //设置半径
    _addressL.layer.cornerRadius = 14 *AUTO_HEIGHT;
    _addressL.textAlignment = NSTextAlignmentCenter;

    

}
@end
